package com.kayt.cyberBar.company.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.company.business.entity.po.BCompanyAccount;

public interface ICompanyAccountDao {

	public Long addAccount(BCompanyAccount account) throws SQLException;

	public void updateAccount(BCompanyAccount account) throws SQLException;

	public int deleteAccount(BCompanyAccount account);

	public BCompanyAccount getAccount(String accountId);

	public BCompanyAccount getAccountByCode(String code) throws SQLException;

	public PageData<BCompanyAccount> getAccountList(int pageNum, int pageSize, String hql, Object[] params,
			LinkedHashMap<String, String> accountMap) throws SQLException;

	public List getAccountListByHql(int pageNum, int pageSize, String hql, Object[] params) throws SQLException;

	public boolean checkValidate(String name) throws SQLException;

	public void batchInsert(List<BCompanyAccount> itemList);

}
